package com.weaver.upgrade.domain;

import com.weaver.upgrade.FunctionUpgradeUtil;
import weaver.conn.RecordSet;
import weaver.system.License;

@SuppressWarnings("deprecation")
public class Upgrade081 {
    public static RecordSet rs = new RecordSet();
    
    public static String cid = "3613905";
    
    String sysCId = (new License()).getCId();
    
	public boolean upgrade() {
        System.out.println("CId==========" + this.sysCId);
        if (cid.equals(this.sysCId)) {
            System.out.println("Upgrade081start");
            try {
                String str = "update menucontrollist set isopen = '" + FunctionUpgradeUtil.getMenuStatus(10284, 1, Integer.parseInt(cid)) + "'" + " where menuid = '" + FunctionUpgradeUtil.getMenuId(10284, Integer.parseInt(cid)) + "'" + "and type='top'";
                System.out.println(":" + str);
                rs.executeSql(str);
                System.out.println("Upgrade081end");
            } catch (Exception exception) {}
            return true;
        } 
        System.out.println("Upgrade081");
        return false;
    }
    
    public boolean stop() {
        System.out.println("CId==========" + this.sysCId);
        if (cid.equals(this.sysCId)) {
            System.out.println("Upgrade081start");
            try {
                String str = "update menucontrollist set isopen = '" + FunctionUpgradeUtil.getMenuStatus(10284, 0, Integer.parseInt(cid)) + "'" + " where menuid = '" + FunctionUpgradeUtil.getMenuId(10284, Integer.parseInt(cid)) + "'" + "and type='top'";
                System.out.println(":" + str);
                rs.executeSql(str);
                System.out.println("Upgrade081end");
            } catch (Exception exception) {}
            return true;
        } 
        System.out.println("Upgrade081");
        return false;
    }
}
